<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Productos</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">
				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>

				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">

									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 35px;'>
										<ice:panelGrid width="626">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px; background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'
												dir="RTL">


												<ice:outputText value="PRODUCTO" styleClass="tituloform" />
											</ice:panelGrid>



											<ice:panelGrid columns="2"
												style="width: 350px; margin-top: 0px; padding-bottom: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px">

												<ice:panelTabSet
													style="width: 350px;   font-size: 12px; height: 300px">
													<ice:panelTab  label="PRODUCTO  ">
														<ice:panelGrid columns="4"
															style="width: 200px; margin-top: 10px; padding-top: 10px"
															cellpadding="0" cellspacing="0" border="0" dir="LTR">

															<ice:outputText
																value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Codigo&#160;: "
																style="color:#004080; font-size: 12px; font-weight: bold; text-align: left; " />

															<ice:panelGrid dir="LTR" columns="3" cellspacing="0"
																border="0" style="width: 108px"
																styleClass="Conf_panelgrid2">
																<ice:inputText value="#{Producto_MB.bcodigo}"
																	disabled="#{!Producto_MB.swnuevo}"
																	binding="#{Producto_MB.txtcodigo}" tabindex="1"
																	actionListener="#{Producto_MB.validaId}" id="codigo"
																	maxlength="15" title="Codigo de bodega"
																	style="width: 150px">
																</ice:inputText>
															</ice:panelGrid>

															<ice:outputText
																value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Nombre&#160;: "
																style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />
															<ice:inputText value="#{Producto_MB.bnombre}"
																binding="#{Producto_MB.txtnombre}" id="nombrebod"
																title="Nombre de bodega" tabindex="2"
																disabled="#{!Producto_MB.sweditando}"
																style="width: 220px">
															</ice:inputText>

															<ice:outputText
																value="&#160;&#160;&#160;&#160;&#160;&#160;Tipo&#160;de&#160;Iva&#160;: "
																style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />

															<ice:panelGrid columns="3" style="width: 200px; "
																styleClass="Conf_panelgrid3">

																<ice:inputText value="#{Producto_MB.bivacod}"
																	tabindex="3" binding="#{Producto_MB.txtbivacod}"
																	maxlength="4"
																	actionListener="#{Producto_MB.action_ValidaIva}"
																	disabled="#{!Producto_MB.sweditando}"
																	style="width: 45px">
																</ice:inputText>
																<ice:commandButton styleClass="boton_busv"
																	visible="#{Producto_MB.sweditando}"
																	actionListener="#{Producto_MB.popupAccion_EstadoTipoiva}" />
																<ice:inputText value="#{Producto_MB.bivanom}"
																	maxlength="30" partialSubmit="true" readonly="true"
																	style="width: 105px">
																</ice:inputText>
															</ice:panelGrid>


															<ice:outputText value="UND&#160;Medida&#160;: "
																style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />

															<ice:panelGrid columns="3" style="width: 200px; "
																styleClass="Conf_panelgrid3">

																<ice:inputText value="#{Producto_MB.bundcod}"
																	tabindex="5" binding="#{Producto_MB.txtbundcod}"
																	maxlength="4"
																	actionListener="#{Producto_MB.action_ValidaUnidad}"
																	partialSubmit="true"
																	disabled="#{!Producto_MB.sweditando}"
																	style="width: 60px">
																</ice:inputText>
																<ice:commandButton styleClass="boton_busv"
																	visible="#{Producto_MB.sweditando}"
																	actionListener="#{Producto_MB.popupAccion_EstadoUnimed}" />
																<ice:inputText value="#{Producto_MB.bundnom}"
																	maxlength="30" partialSubmit="true" readonly="true"
																	style="width: 115px">
																</ice:inputText>
															</ice:panelGrid>


															<ice:outputText
																value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Linea&#160;: "
																style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />

															<ice:panelGrid columns="3" style="width: 200px; "
																styleClass="Conf_panelgrid3">

																<ice:inputText value="#{Producto_MB.blineacod}"
																	tabindex="5" binding="#{Producto_MB.txtblineacod}"
																	maxlength="12"
																	actionListener="#{Producto_MB.action_ValidaLinea}"
																	partialSubmit="true"
																	disabled="#{!Producto_MB.sweditando}"
																	style="width: 45px">
																</ice:inputText>
																<ice:commandButton styleClass="boton_busv"
																	visible="#{Producto_MB.sweditando}"
																	actionListener="#{Producto_MB.popupAccion_EstadoLinea}" />
																<ice:inputText value="#{Producto_MB.blineanom}"
																	maxlength="30" partialSubmit="true" readonly="true"
																	style="width: 105px">
																</ice:inputText>
															</ice:panelGrid>


															<ice:outputText
																value="&#160;&#160;&#160;Proveedor&#160;: "
																style="color:#004080; font-size: 12px; font-weight: bold;  text-align: left;" />

															<ice:panelGrid columns="3" style="width: 200px; "
																styleClass="Conf_panelgrid3">

																<ice:inputText value="#{Producto_MB.bproveecod}"
																	tabindex="6" binding="#{Producto_MB.txtbproveecod}"
																	maxlength="15"
																	actionListener="#{Producto_MB.action_ValidaProvee}"
																	partialSubmit="true"
																	disabled="#{!Producto_MB.sweditando}"
																	style="width: 60px">
																</ice:inputText>
																<ice:commandButton styleClass="boton_busv"
																	visible="#{Producto_MB.sweditando}"
																	actionListener="#{Producto_MB.popupAccion_EstadoProvee}" />
																<ice:inputText value="#{Producto_MB.bproveenom}"
																	maxlength="30" partialSubmit="true" readonly="true"
																	style="width: 115px">
																</ice:inputText>
															</ice:panelGrid>

															<ice:outputText value="Nombre&#160;Corto&#160;: "
																style="color:#004080; font-size: 12px;  text-align: left; " />

															<ice:panelGrid dir="LTR" columns="3" cellspacing="0"
																border="0" style="width: 108px"
																styleClass="Conf_panelgrid2">
																<ice:inputText value="#{Producto_MB.bnomcorto}"
																	disabled="#{!Producto_MB.sweditando}" tabindex="7"
																	id="nombrecorto" maxlength="15"
																	title="Codigo de bodega" style="width: 150px">
																</ice:inputText>
															</ice:panelGrid>

															<ice:outputText value="Control&#160;Serie&#160;: "
																style="color:#004080; font-size: 12px;   text-align: left;" />
															<ice:panelGrid columns="3" dir="LTR">
																<ice:selectBooleanCheckbox value="#{Producto_MB.bserie}"
																	tabindex="8" disabled="#{!Producto_MB.sweditando}"
																	partialSubmit="true" />


															</ice:panelGrid>


															<ice:outputText
																value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Activo&#160;:&#160;&#160; "
																style="color:#004080; font-size: 12px;   text-align: left;" />
															<ice:panelGrid columns="1" dir="LTR">
																<ice:selectBooleanCheckbox
																	value="#{Producto_MB.bactivo}" tabindex="10"
																	disabled="#{!Producto_MB.sweditando}"
																	partialSubmit="true" />
															</ice:panelGrid>
															<ice:outputText value="Control&#160;Vence&#160;: "
																visible="false"
																style="color:#004080; font-size: 12px;   text-align: left;" />
															<ice:panelGrid columns="1" dir="LTR" visible="false">
																<ice:selectBooleanCheckbox value="#{Producto_MB.bvence}"
																	tabindex="9" disabled="#{!Producto_MB.sweditando}"
																	partialSubmit="true" />
															</ice:panelGrid>


														</ice:panelGrid>
													</ice:panelTab>
													<ice:panelTab label="Agregar a Bodegas  ">
														<ice:panelGrid columns="4" style="width: 200px; "
															styleClass="Conf_panelgrid3">
															
															<ice:inputText value="#{Producto_MB.bbodegas}"
																tabindex="5" binding="#{Producto_MB.txtbodegasal}"
																maxlength="30" 
																actionListener="#{Producto_MB.action_Validabodega}"
																partialSubmit="true"
																disabled="#{!Producto_MB.sweditando}" style="width: 66px">
															</ice:inputText>
															<ice:commandButton styleClass="boton_busv" visible="#{Producto_MB.sweditando}" actionListener="#{Producto_MB.popupAccion_CerrarBod}" />
															<ice:inputText value="#{Producto_MB.bbodegasnom}"
																maxlength="30" partialSubmit="true" readonly="true"
																style="width: 162px">
															</ice:inputText><ice:commandButton styleClass="botonv" value="Agregar" disabled="#{!Producto_MB.sweditando}" action="#{Producto_MB.action_AgregarProbodega}" />
														</ice:panelGrid>
														<ice:panelGrid dir="LTR" columns="3" style="width: 100px"
															styleClass="Conf_panelgrid2">

															<ice:panelGrid styleClass="Conf_panelgrid2">

																<ice:dataTable var="item"
																	value="#{Producto_MB.probodegaw}" id="tableProbodega"
																	rows="7" rendered="true" headerClass="iceDatTblColHdrv"
																	width="600">

																	<ice:outputText value="Listado De Requisiciones"
																		style="font-family: Verdana, Arial, Sans-Serif; color: #004080; font-size: 12px; text-align: left" />

																	<ice:column style="width: 20px">
																		<ice:rowSelector id="selected"
																			value="#{item.selected}" multiple="false"
																			selectionListener="#{Producto_MB.rowSelectionListenerProbodega}"
																			selectedClass="QsiceRowSelSelectedMouseOver"
																			mouseOverClass="QsiceRowSelSelected" />
																		<f:facet name="header">
																			<ice:outputText value="CODIGO"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText
																			value="#{item.probodegaw.bodega.bodcodigo}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
																	</ice:column>
																	<ice:column style="width: 120px">
																		<f:facet name="header">
																			<ice:outputText value="NOMBRE"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText
																			value="#{item.probodegaw.bodega.bodnombre}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">

																			<f:convertNumber maxFractionDigits="0"
																				groupingUsed="true" currencySymbol=""
																				maxIntegerDigits="16" type="currency" />

																		</ice:outputText>
																	</ice:column>
																	<ice:column style="width: 60px">
																		<f:facet name="header">
																			<ice:outputText value="EXIST"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText value="#{item.probodegaw.pbdexiste}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
																	</ice:column>
																	<ice:column style="width: 60px">
																		<f:facet name="header">
																			<ice:outputText value="COMPROM"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText value="#{item.probodegaw.pbdcomprm}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
																	</ice:column>



																</ice:dataTable>
																<ice:panelGrid columns="2">
																<ice:dataPaginator id="paginatortableProbodega"
																	for="tableProbodega" paginator="true"
																	paginatorMaxPages="4" style="height: 17px">
																	<f:facet name="first">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-first.gif" />
																	</f:facet>
																	<f:facet name="last">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-last.gif" />
																	</f:facet>
																	<f:facet name="previous">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-previous.gif" />
																	</f:facet>
																	<f:facet name="next">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-next.gif" />
																	</f:facet>
																	<f:facet name="fastforward">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-ff.gif" />
																	</f:facet>
																	<f:facet name="fastrewind">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-fr.gif" />
																	</f:facet>
																</ice:dataPaginator>
																
																<ice:commandButton styleClass="botonv" value="Quitar" disabled="#{!Producto_MB.sweditando}" actionListener="#{Producto_MB.action_confirmacionEliminarprobodega}" />
															</ice:panelGrid>

															</ice:panelGrid>

															
														</ice:panelGrid>
													</ice:panelTab>
													<ice:panelTab label="Agregar Unidades De Medida">
														<ice:panelGrid columns="5"   >
															<ice:inputText value="#{Producto_MB.bprounimed}"
																tabindex="5" binding="#{Producto_MB.txtprounimed}"
																maxlength="4"
																actionListener="#{Producto_MB.action_Validaprounimed}"
																partialSubmit="true"
																disabled="#{!Producto_MB.sweditando}"
																style="width: 70px">
															</ice:inputText>
															<ice:commandButton styleClass="boton_busv"
																visible="#{Producto_MB.sweditando}"
																actionListener="#{Producto_MB.popupAccion_Estadoprounimed}" />
															<ice:inputText value="#{Producto_MB.bprounimednom}"
																maxlength="30" partialSubmit="true" readonly="true"
																style="width: 150px">
															</ice:inputText>
															
															<ice:inputText value="#{Producto_MB.aprocantidad}"
																tabindex="5" binding="#{Producto_MB.txtaprocantidad}"
																maxlength="14"
																partialSubmit="true"
																disabled="#{!Producto_MB.sweditando}"
																style="width: 70px">
															</ice:inputText><ice:commandButton styleClass="botonv" value="Agregar" disabled="#{!Producto_MB.sweditando}" action="#{Producto_MB.action_AgregarProunimed}" />
														</ice:panelGrid>
														<ice:panelGrid dir="LTR" columns="3" style="width: 100px"
															styleClass="Conf_panelgrid2">


															<ice:panelGrid>

																<ice:dataTable var="item"
																	value="#{Producto_MB.prounimedw}" id="tableProunimed"
																	rows="6" rendered="true" headerClass="iceDatTblColHdrv"
																	width="600">

																	<ice:outputText value="Listado De Requisiciones"
																		style="font-family: Verdana, Arial, Sans-Serif; color: #004080; font-size: 12px; text-align: left" />

																	<ice:column style="width: 20px">
																		<ice:rowSelector id="selected"
																			value="#{item.selected}" multiple="false"
																			selectionListener="#{Producto_MB.rowSelectionListenerProunimed}"
																			selectedClass="QsiceRowSelSelectedMouseOver"
																			mouseOverClass="QsiceRowSelSelected" />
																		<f:facet name="header">
																			<ice:outputText value="CODIGO"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText
																			value="#{item.prounimedw.unimed.umdcodigo}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
																	</ice:column>
																	<ice:column style="width: 120px">
																		<f:facet name="header">
																			<ice:outputText value="NOMBRE"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText
																			value="#{item.prounimedw.unimed.umdnombre}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">

																			<f:convertNumber maxFractionDigits="0"
																				groupingUsed="true" currencySymbol=""
																				maxIntegerDigits="16" type="currency" />

																		</ice:outputText>
																	</ice:column>
																	<ice:column style="width: 60px">
																		<f:facet name="header">
																			<ice:outputText value="FACTOR COM"
																				styleClass="headertabla" />
																		</f:facet>
																		<ice:outputText value="#{item.prounimedw.pumfactor}"
																			style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px; text-align: right;" />
																	</ice:column>


																</ice:dataTable>
																<ice:panelGrid columns="2">
																<ice:dataPaginator id="paginatortatableProunimed"
																	for="tableProbodega" paginator="true"
																	paginatorMaxPages="4" style="height: 17px">
																	<f:facet name="first">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-first.gif" />
																	</f:facet>
																	<f:facet name="last">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-last.gif" />
																	</f:facet>
																	<f:facet name="previous">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-previous.gif" />
																	</f:facet>
																	<f:facet name="next">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-next.gif" />
																	</f:facet>
																	<f:facet name="fastforward">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-ff.gif" />
																	</f:facet>
																	<f:facet name="fastrewind">
																		<ice:graphicImage style="border:none"
																			url="./css/images/arrow-fr.gif" />
																	</f:facet>
																</ice:dataPaginator>
																
																<ice:commandButton styleClass="botonv" value="Quitar" disabled="#{!Producto_MB.sweditando}" actionListener="#{Producto_MB.action_confirmacionEliminarprounimed}" />
															</ice:panelGrid>

															</ice:panelGrid>


															
														</ice:panelGrid>
													</ice:panelTab>
												</ice:panelTabSet>


											</ice:panelGrid>



											<ice:panelGrid width="400"
												style='margin-left: 180px; text-align: center;'
												columnClasses="Conf_panelgrid1">
												<ice:panelGrid columns="4" border="0" cellpadding="2"
													cellspacing="2">




													<ice:commandButton action="#{Producto_MB.action_modificar}"
														visible="#{!Producto_MB.sweditando}" styleClass="botonv"
														value="MODIFICAR" tabindex="9" />
													<ice:commandButton
														actionListener="#{Producto_MB.toggleModalguardar}"
														visible="#{Producto_MB.sweditando}" styleClass="botonv"
														value="GUARDAR" tabindex="11" />

													<ice:commandButton styleClass="botonv" value="CANCELAR"
														visible="#{Producto_MB.sweditando}"
														actionListener="#{Producto_MB.toggleModalcancelar}" />



													<ice:commandButton action="#{Producto_MB.action_salir}"
														visible="#{!Producto_MB.sweditando}" styleClass="botonv"
														value="SALIR" tabindex="9" />

												</ice:panelGrid>
											</ice:panelGrid>

											<ice:panelGrid columns="5" cellpadding="0" border="0"
												cellspacing="0" style="height: 37px; width: 635px">





												<ice:panelGrid style="width: 377px">
													<ice:messages id="msg"
														style="width: 10px; height: 300px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
												</ice:panelGrid>

											</ice:panelGrid>






											<!-- FPOPUP BODEG d  -->






											<ice:panelPopup id="popupproveedor" draggable="false"
												modal="true" visible="#{Producto_MB.modalpopupProvee}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 320px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Proveedores"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">

														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Producto_MB.busquedacmbProvee}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="vinnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="vincedula"
																	itemLabel="Cedula / Nit" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Producto_MB.buscarProvee}"
																binding="#{Producto_MB.txtBuscarProvee}"
																style="width: 97px" />
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Producto_MB.action_BuscarProvee}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Producto_MB.listaProveepopup}"
															id="tablepopupProveedor" headerClass="iceDatTblColHdrv"
															rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Cedula/Nit"
																		styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.vincedula}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.vinnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.vincedula}"
																	binding="#{Producto_MB.popup_cmdselecionarProvee}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Producto_MB.popupAccion_SelecionarProvee}"
																	title="Agregar Proveedor" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupProvee"
																for="tablepopupProveedor" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Producto_MB.popupAccion_EstadoProvee}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 373px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgProvee"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


											<ice:panelPopup id="popuplineas" draggable="false"
												modal="true" visible="#{Producto_MB.modalpopupLinea}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 320px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Lineas"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Producto_MB.busquedacmbLinea}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="linnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="lincodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Producto_MB.buscarLinea}"
																binding="#{Producto_MB.txtBuscarLinea}"
																style="width: 97px" />
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Producto_MB.action_BuscarLinea}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Producto_MB.listaLineapopup}"
															id="tablepopuplineas" headerClass="iceDatTblColHdrv"
															rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.lincodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.linnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.lincodigo}"
																	binding="#{Producto_MB.popup_cmdselecionarLinea}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Producto_MB.popupAccion_SelecionarLinea}"
																	title="Agregar Linea" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupLineas"
																for="tablepopuplineas" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Producto_MB.popupAccion_EstadoLinea}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 349px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgLinea"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<ice:panelPopup id="popupivas" draggable="false" modal="true"
												visible="#{Producto_MB.modalpopupTipoiva}" autoCentre="true"
												styleClass="corePopup" style=" width: 420px; height: 320px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Ivas" styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Producto_MB.busquedacmbTipoiva}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="ivanombre" itemLabel="Nombre" />
																<f:selectItem itemValue="ivacodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Producto_MB.buscarTipoiva}"
																binding="#{Producto_MB.txtBuscarTipoiva}"
																style="width: 97px" />
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Producto_MB.action_BuscarIva}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Producto_MB.listaTipoivapopup}"
															id="tablepopupivas" headerClass="iceDatTblColHdrv"
															rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.ivacodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.ivanombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.ivacodigo}"
																	binding="#{Producto_MB.popup_cmdselecionarTipoiva}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Producto_MB.popupAccion_SelecionarIva}"
																	title="Agregar TIpo De Iva" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupTipoivas"
																for="tablepopupivas" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Producto_MB.popupAccion_EstadoTipoiva}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 358px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgTipoiva"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


											<ice:panelPopup id="popupUnimed" draggable="false"
												modal="true" visible="#{Producto_MB.modalpopupUnimed}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 320px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Unidades de Medida"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Producto_MB.busquedacmbUnimed}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="umdnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="umdcodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Producto_MB.buscarUnimed}"
																binding="#{Producto_MB.txtBuscarUnimed}"
																style="width: 97px" />
															<ice:commandButton value="Buscar"
																image="./Media/img/But4v.bmp"
																actionListener="#{Producto_MB.action_BuscarUnimed}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Producto_MB.listaUnimedpopup}"
															id="tablepopupunidades" headerClass="iceDatTblColHdrv"
															rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.umdcodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.umdnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.umdcodigo}"
																	binding="#{Producto_MB.popup_cmdselecionarUnimed}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Producto_MB.popupAccion_SelecionarUnimed}"
																	title="Agregar Unidad De Medida" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupUnidades"
																for="tablepopupunidades" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonv"
																actionListener="#{Producto_MB.popupAccion_EstadoUnimed}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>

														<ice:panelGrid style="width: 351px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgUnimed"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

<ice:panelPopup id="popupbodegas" draggable="false"
												modal="true" visible="#{Producto_MB.modalpopupbodega}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 320px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Agregar Producto a Bodega  "
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu value="#{Producto_MB.busquedacmbbodega}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="bodnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="bodcodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Producto_MB.buscarbod}"
																binding="#{Producto_MB.txtBuscarbod}" style="width: 97px"></ice:inputText>
															<ice:commandButton value="Buscar"
																image="./Media/img/But4.bmp"
																actionListener="#{Producto_MB.action_BuscarBod}"  />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Producto_MB.listaBodegapopup}" id="tablepopupbod"
															rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodcodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.bodcodigo}"
																	binding="#{Producto_MB.popup_cmdselecionarBod}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Producto_MB.popupAccion_SelecionarBod}"
																	title="Agregar Bodega" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupbod"
																for="tablepopupbod" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="boton"
																actionListener="#{Producto_MB.popupAccion_CerrarBod}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
															<ice:panelGrid style="width: 398px"
																styleClass="Conf_panelgrid2">
																<ice:messages id="msgbod"
																	style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
															</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


											<ice:panelPopup id="popupenviar" draggable="false"
												modal="true" visible="#{Producto_MB.modalRenderedguardar}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 400px; height: 100px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea guardar este registro ?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																action="#{Producto_MB.action_guardar}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Producto_MB.toggleModalguardar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<ice:panelPopup id="popupguardar" draggable="false"
												modal="true" visible="#{Producto_MB.modalRenderedcancelar}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 400px; height: 100px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea cancelar los cambios ?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																action="#{Producto_MB.action_cancelar}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Producto_MB.toggleModalcancelar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>

											<ice:panelPopup id="popupeliminaunimed" draggable="false"
												modal="true" visible="#{Producto_MB.modalRenderedprounimed}"
												rendered="#{Producto_MB.modalRenderedprounimed}"
												autoCentre="true" styleClass="Conf_panelgrid2"
												style=" width: 350px; height: 120px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea Eliminar la unidad" />
														<br />
														<ice:outputText styleClass="qs_label"
															value=" #{Producto_MB.nombreEliminarprounimed}?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																actionListener="#{Producto_MB.action_EliminarTablaprounimed}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Producto_MB.Activapopupeliminarprounimed}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>



											<ice:panelPopup id="popupeliminaprobodega" draggable="false"
												modal="true" visible="#{Producto_MB.modalRenderedprobodega}"
												rendered="#{Producto_MB.modalRenderedprobodega}"
												autoCentre="true" styleClass="Conf_panelgrid2"
												style=" width: 350px; height: 120px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea Eliminar la Bodega" />
														<br />
														<ice:outputText styleClass="qs_label"
															value=" #{Producto_MB.nombreEliminarprobodega}?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																actionListener="#{Producto_MB.action_EliminarTablaprobodega}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Producto_MB.Activapopupeliminarprobodega}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>

						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>